<style>
    .lab label{
        width: 50px;
    }
</style>
<article class="module width_full">
    <header><h3>Detalle de Tarea</h3></header>
    <div class="module_content lab">
        <table border="0">
            <tr>
                <td><b>Tarea</b></td>
                <td>
                    <span><?php echo $this->tarea['title'] ?></span>
                </td>
            </tr>
            <tr>
                <td><b>Detalle</b></td>
                <td><span><?php echo $this->tarea['description'] ?></span></td>
            </tr>

            <tr>
                <td><b>Usuarios Asignados</b></td>
                <td>
                    <?php
                    $user = new User_Model_DbTable_User();
                    foreach ($this->resTareaUser as $tu) {
                        $userVal = $user->fetchRow('id=' . $tu->id_user);
                        echo $userVal->nombre . ' ' . $userVal->apellidos . '<br/>';
                    }
                    ?>
                </td>
            </tr>

            <tr>
                <td><b>Orden</b></td>
                <td><span><?php echo $this->orden->code . ' - ' . $this->orden->title ?></span></td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <form method="post" action="<?php $this->url() ?>">
                        <select id="status" name="status">
                            <option value="1" <?php echo ($this->tarea['status'] == 1) ? 'selected="selected"' : '' ?> >En progreso</option>
                            <option value="5" <?php echo ($this->tarea['status'] == 5) ? 'selected="selected"' : '' ?> >Aprobado</option>
                        </select>

                        <div class="submit_link" style="margin-top: 10px;">
                            <input type="submit" value="Guardar" class="alt_btn"/>
                            <a class="button" href="<?php echo $this->url(array('action' => 'mytask')) ?>">Cerrar</a>
                        </div>
                    </form>

                </td>
            </tr>
        </table>
    </div>
</article>